docs/support-matrix: unbreak docs rendering
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 4 Jun 2020 20:39:37 +0000 (21:39 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 8 Jun 2020 14:19:49 +0000 (15:19 +0100)
commit11ba5cdb8489e4dfc1e50c948dba23cece559e77
tree4effe57e2d14186e613a6b3276ebec389e3bf2cf
parent75131ad75bb3c91717b5dfda6881e61c52bfd22e
docs/support-matrix: unbreak docs rendering

The cronjob which renders https://xenbits.xen.org/docs/ has been broken for a
while.  commitish_version() pulls an old version of xen/Makefile out of
history, and uses the xenversion rule.

Currently, this fails with:

  tmp.support-matrix.xen.make:130: scripts/Kbuild.include: No such file or directory

which is because the Makefile legitimately references Kbuild.include with a
relative rather than absolute path.

Rework support-matrix-generate to use sed to extract the major/minor version,
rather than expecting xen/Makefile to be usable in a different tree.

Fixes: 945e80a7301f ("docs: Provide support-matrix-generate, to generate a support matrix in HTML")
Backport: 4.11+
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Release-acked-by: Paul Durrant <paul@xen.org>
docs/support-matrix-generate